package com.proxy.demo01;

public class UsageLogger {
    private String userId;

    public void save(){
        String sql = "INSERT INTO USAGE_TABLE(user_id) VALUES(" + userId + ")";
        // 执行SQL
    }

    public void save(String userId){
        this.userId = userId;
        System.out.println(userId + " usageLogger ++");
        save();
    }
}
